package per.com.bean;

import java.io.Serializable;
import java.util.List;

public class BaseBean<T> implements Serializable {
    // 0成功，其他失败
    private int resultCode;
    private String msg;
    private T data;
    private List<T> datas;

    public BaseBean() {

    }

    public BaseBean(int resultCode, String msg) {
        this.resultCode = resultCode;
        this.msg = msg;
    }

    public BaseBean(int resultCode, String msg, T data) {
        this.resultCode = resultCode;
        this.msg = msg;
        this.data = data;
    }

    public BaseBean(int resultCode, String msg, List<T> datas) {
        this.resultCode = resultCode;
        this.msg = msg;
        this.datas = datas;
    }

    public BaseBean(int resultCode, String msg, T data, List<T> datas) {
        this.resultCode = resultCode;
        this.msg = msg;
        this.data = data;
        this.datas = datas;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public List<T> getDatas() {
        return datas;
    }

    public void setDatas(List<T> datas) {
        this.datas = datas;
    }
}
